package com.myhexin.service.impl;

import com.myhexin.entity.Card;
import com.myhexin.entity.Table;
import com.myhexin.service.IPlayerService;
import org.kie.api.cdi.KSession;
import org.kie.api.runtime.KieSession;
import org.springframework.stereotype.Service;

/**
 * Created by zjh on 2017/3/23.
 */
@Service
public class PlayerServiceImpl implements IPlayerService {

    @KSession("playergetgive_ksession")
    private KieSession kSession;


    @Override
    public void grabCard(Table table) {
        kSession.insert(table);
        System.out.println("fact对象输入");
        kSession.fireAllRules();
    }

    @Override
    public void  disCard(Table table) {
        return ;
    }


}
